package com.shangxian.giveithome.entity.petCard.inputParam;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author coderFu
 * @create 2021/5/3
 * 处理时间的参数
 */
@Data
@ApiModel("封装处理时间的参数类")
public class TimeParam {

    @ApiModelProperty("年份")
    private int scanYear;

    @ApiModelProperty("月日")
    private String scanMonth;

    @ApiModelProperty("小时")
    private String scanHour;

    @ApiModelProperty("扫描时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date scanTime;
}
